/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.MRP.SOProcess;

import entity.MRP.ProductionPlan.PlannedWeeklyDemand;
import java.io.Serializable;
import java.util.List;
import javaclass.ProductType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

/**
 *
 * @author Vincent
 */
@Entity
public class WeeklyDemandAmendment implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @OneToOne
    private PlannedWeeklyDemand plannedWeeklyDemand;
    
    private List<ProductType> productTypes;
    
    @ManyToOne
    private BackOrder backOrder;
    
    private List<Long> quantities;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public PlannedWeeklyDemand getPlannedWeeklyDemand() {
        return plannedWeeklyDemand;
    }

    public void setPlannedWeeklyDemand(PlannedWeeklyDemand plannedWeeklyDemand) {
        this.plannedWeeklyDemand = plannedWeeklyDemand;
    }

    public List<ProductType> getProductTypes() {
        return productTypes;
    }

    public void setProductTypes(List<ProductType> productTypes) {
        this.productTypes = productTypes;
    }

    public List<Long> getQuantities() {
        return quantities;
    }

    public void setQuantities(List<Long> quantities) {
        this.quantities = quantities;
    }

    public BackOrder getBackOrder() {
        return backOrder;
    }

    public void setBackOrder(BackOrder backOrder) {
        this.backOrder = backOrder;
    }
    
}
